<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Funciones para obtener la galeria del evento
 *
 * @author Haydee
 */
class View_Helper_EventHelper extends Model3_View_Helper
{

    public function buildGalery($images)
    {
        if ($images):
            ?>  
            <div id="gallery" class="img_container">
                <h3><?php echo $this->_view->ev->getNameEvent(); ?>:</h3>
                <br/><!--falta definir la paginacion de las fotos -->
                <div id="listUser">
<!--                    <div style="text-align:center; margin: 20px;"><img alt="" src="<?php echo $this->_view->getBaseUrl() . '/images/ajaxloader.gif' ?>" /></div>-->
                </div> 
                <!-- Se supone que se tiene que quitar todo lo demas solo dejar el div lis user -->
                
            </div>
        <?php else: ?>
            <div class="errorBox ">
                <div class="errorBoxTop">&nbsp;</div>
                <div class="msgBoxContent errorIcon">
                    <p>El evento aun no tiene fotos <br/></p>
                </div>
            </div>  

        <?php
        endif;
    }

    public function errorPass()
    {
        ?>
        <div class="errorBox ">
            <div class="errorBoxTop">&nbsp;</div>
            <div class="msgBoxContent errorIcon">
                <p>La contrase&ntilde;a es incorrecta<br/></p>
            </div>
        </div>

        <?php
    }

    public function findEvent()
    {

        if ($this->_view->band != 1):
            ?>
            <div>
                <form id="findEvent" method="post" action="<?php echo $this->_view->url(array('module' => '', 'action' => 'findEvents')); ?>">
                    <label for="nameEvent" style="color: #EEE">Nombre del evento:</label><br/>
                    <input style="width: 230px;" type="text" id="nameEvent" name="nameEvent" /><br/>
                    <label for="cityEvent" style="color: #EEE;">Ciudad del evento:</label><br/>
                    <select style="width: 230px;  margin-bottom: -8px;" type="text" id="cityEvent" name="cityEvent" >
                        <option>SAN LUIS POTOSI</option>
                    </select> <br/><br/>
                    <input class="smartButton" type="submit" value="Buscar" />
                </form>
            </div>
            <?php elseif ($this->_view->eventPrivate): ?>
            <div>
                <form id="findEvent" method="post" action="<?php echo $this->_view->url(array('module' => '', 'action' => 'events', 'event' => $this->_view->id)); ?>">
                    <label for="nameEvent" style="color: #EEE">Password del evento:</label><br/>
                    <input style="width: 230px;" type="password" id="passwordEvent" name="passwordEvent" /><br/><br/>
                    <input class="smartButton" style="margin-bottom: 16px;" type="submit" value="Entrar" /><br/><br/>
                </form>
            </div>
            <?php
        endif;
    }

}